﻿using Elektronix.Class;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Elektronix
{
    public partial class products : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["cid"] != null)
            {
                int cid = Convert.ToInt32(Request.QueryString["cid"]);

                productclass p = new productclass();
                p.categoryID = cid;
                datalistProducts.DataSource=p.urunlergetircatIDli();
                datalistProducts.DataBind();
            }


        }
    }
}